package com.qinggeng.project.system.domain.vo;

import com.qinggeng.common.utils.StringUtils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class DistributionPointImgVO {

    private List<String> distributionPointShopImg;


    private String distributionPointWxImg;

    public List<String> getDistributionPointShopImg() {
        return distributionPointShopImg;
    }

    public void setDistributionPointShopImg(List<String> distributionPointShopImg) {
        this.distributionPointShopImg = distributionPointShopImg;
    }

    public String getDistributionPointWxImg() {
        return distributionPointWxImg;
    }

    public void setDistributionPointWxImg(String distributionPointWxImg) {
        this.distributionPointWxImg = distributionPointWxImg;
    }

    public DistributionPointImgVO() {
    }

    public DistributionPointImgVO(String pointImg,String listImg) {
        this.distributionPointWxImg=pointImg;
        List<String> list=new ArrayList<>();
        if (StringUtils.isNotEmpty(listImg)){
            String [] imgs=listImg.split(",");
            list= Arrays.asList(imgs);
        }
        this.distributionPointShopImg=list;
    }
}
